package top.aicats.blog.BlogManage;

import io.jsonwebtoken.Claims;
import org.junit.Test;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import top.aicats.blog.BlogManage.utils.JwtUtils;

import java.sql.SQLOutput;

/**
 * @author sjc
 * @version 1.0
 * @date 2020/1/1 12:14
 * @email 952491025@qq.com
 */
@RestController
@RequestMapping("/")
public class TestClass {

    @RequestMapping("/user")
    @ResponseBody
    public String getUsers() {
        return "dafads";
    }

    @Test
    public void GenerateJwt() {
        String jwt = JwtUtils.CreateJwt("james");
        Claims claims = JwtUtils.CheckJWT(jwt);
        System.out.println();
    }
}
